package com.wancaijinfu.parse;


import org.json.JSONException;
import org.json.JSONObject;

import com.wancaijinfu.javabean.Debt;

public class DebtParse  extends PostParse{

	@Override
	public Object parseSuccess(JSONObject object) throws JSONException {
		JSONObject newObj = object.getJSONObject("item");
		Debt item = new Debt();
		item.id = newObj.getInt("id");
		item.name =  newObj.getString("b_name");
		item.status =  newObj.getInt("status");
		item.user_name = newObj.getString("su_user_name");
		item.discount = newObj.getDouble("discount");
		item.money = newObj.getDouble("money");	
		item.interest = newObj.getDouble("had_interest");
		item.time_limit = newObj.getInt("time_limit");
		
		 item.is_day = newObj.getInt("is_day");
		
		 return item;
		
	}
	
}
